package com.scm.bean;

import java.util.HashSet;
import java.util.Set;

/**
 * Part entity. @author MyEclipse Persistence Tools
 */

public class Part implements java.io.Serializable {

	// Fields

	private Integer partId;
	private Modeldictionary modeldictionary=new Modeldictionary();
	private String partName;
	private String partUse;
	private Integer partCount;
	private Set addorders = new HashSet(0);
	private Set partpurchases = new HashSet(0);

	// Constructors

	/** default constructor */
	public Part() {
	}

	/** minimal constructor */
	public Part(Modeldictionary modeldictionary, String partName,
			String partUse, Integer partCount) {
		this.modeldictionary = modeldictionary;
		this.partName = partName;
		this.partUse = partUse;
		this.partCount = partCount;
	}

	/** full constructor */
	public Part(Modeldictionary modeldictionary, String partName,
			String partUse, Integer partCount, Set addorders, Set partpurchases) {
		this.modeldictionary = modeldictionary;
		this.partName = partName;
		this.partUse = partUse;
		this.partCount = partCount;
		this.addorders = addorders;
		this.partpurchases = partpurchases;
	}

	// Property accessors

	public Integer getPartId() {
		return this.partId;
	}

	public void setPartId(Integer partId) {
		this.partId = partId;
	}

	public Modeldictionary getModeldictionary() {
		return this.modeldictionary;
	}

	public void setModeldictionary(Modeldictionary modeldictionary) {
		this.modeldictionary = modeldictionary;
	}

	public String getPartName() {
		return this.partName;
	}

	public void setPartName(String partName) {
		this.partName = partName;
	}

	public String getPartUse() {
		return this.partUse;
	}

	public void setPartUse(String partUse) {
		this.partUse = partUse;
	}

	public Integer getPartCount() {
		return this.partCount;
	}

	public void setPartCount(Integer partCount) {
		this.partCount = partCount;
	}

	public Set getAddorders() {
		return this.addorders;
	}

	public void setAddorders(Set addorders) {
		this.addorders = addorders;
	}

	public Set getPartpurchases() {
		return this.partpurchases;
	}

	public void setPartpurchases(Set partpurchases) {
		this.partpurchases = partpurchases;
	}

}